import request from '@/utils/request';
import { OtpRes, OtpType } from './types';
// 获取验证码
export const getOtp = (data: OtpType) => {
  return request.post({ url: '/api/v1/base/captcha/send', data });
};
// 验证验证码
export const vetryOtp = (data: OtpRes) => {
  return request.post({ url: '/api/v1/base/captcha/verify', data });
};
